package com.pgybook.db.entity.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DonatedBookRequestEx {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DonatedBookRequestEx() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDonatedbookrequestidIsNull() {
            addCriterion("DONATEDBOOKREQUESTID is null");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidIsNotNull() {
            addCriterion("DONATEDBOOKREQUESTID is not null");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTID =", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidNotEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTID <>", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidGreaterThan(Long value) {
            addCriterion("DONATEDBOOKREQUESTID >", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidGreaterThanOrEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTID >=", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidLessThan(Long value) {
            addCriterion("DONATEDBOOKREQUESTID <", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidLessThanOrEqualTo(Long value) {
            addCriterion("DONATEDBOOKREQUESTID <=", value, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidIn(List<Long> values) {
            addCriterion("DONATEDBOOKREQUESTID in", values, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidNotIn(List<Long> values) {
            addCriterion("DONATEDBOOKREQUESTID not in", values, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidBetween(Long value1, Long value2) {
            addCriterion("DONATEDBOOKREQUESTID between", value1, value2, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andDonatedbookrequestidNotBetween(Long value1, Long value2) {
            addCriterion("DONATEDBOOKREQUESTID not between", value1, value2, "donatedbookrequestid");
            return (Criteria) this;
        }

        public Criteria andCustidIsNull() {
            addCriterion("CUSTID is null");
            return (Criteria) this;
        }

        public Criteria andCustidIsNotNull() {
            addCriterion("CUSTID is not null");
            return (Criteria) this;
        }

        public Criteria andCustidEqualTo(Long value) {
            addCriterion("CUSTID =", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidNotEqualTo(Long value) {
            addCriterion("CUSTID <>", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidGreaterThan(Long value) {
            addCriterion("CUSTID >", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidGreaterThanOrEqualTo(Long value) {
            addCriterion("CUSTID >=", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidLessThan(Long value) {
            addCriterion("CUSTID <", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidLessThanOrEqualTo(Long value) {
            addCriterion("CUSTID <=", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidIn(List<Long> values) {
            addCriterion("CUSTID in", values, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidNotIn(List<Long> values) {
            addCriterion("CUSTID not in", values, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidBetween(Long value1, Long value2) {
            addCriterion("CUSTID between", value1, value2, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidNotBetween(Long value1, Long value2) {
            addCriterion("CUSTID not between", value1, value2, "custid");
            return (Criteria) this;
        }

        public Criteria andStaffidIsNull() {
            addCriterion("STAFFID is null");
            return (Criteria) this;
        }

        public Criteria andStaffidIsNotNull() {
            addCriterion("STAFFID is not null");
            return (Criteria) this;
        }

        public Criteria andStaffidEqualTo(Integer value) {
            addCriterion("STAFFID =", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidNotEqualTo(Integer value) {
            addCriterion("STAFFID <>", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidGreaterThan(Integer value) {
            addCriterion("STAFFID >", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidGreaterThanOrEqualTo(Integer value) {
            addCriterion("STAFFID >=", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidLessThan(Integer value) {
            addCriterion("STAFFID <", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidLessThanOrEqualTo(Integer value) {
            addCriterion("STAFFID <=", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidIn(List<Integer> values) {
            addCriterion("STAFFID in", values, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidNotIn(List<Integer> values) {
            addCriterion("STAFFID not in", values, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidBetween(Integer value1, Integer value2) {
            addCriterion("STAFFID between", value1, value2, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidNotBetween(Integer value1, Integer value2) {
            addCriterion("STAFFID not between", value1, value2, "staffid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidIsNull() {
            addCriterion("PURCHASEBOOKID is null");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidIsNotNull() {
            addCriterion("PURCHASEBOOKID is not null");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID =", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidNotEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID <>", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidGreaterThan(Long value) {
            addCriterion("PURCHASEBOOKID >", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidGreaterThanOrEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID >=", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidLessThan(Long value) {
            addCriterion("PURCHASEBOOKID <", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidLessThanOrEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID <=", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidIn(List<Long> values) {
            addCriterion("PURCHASEBOOKID in", values, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidNotIn(List<Long> values) {
            addCriterion("PURCHASEBOOKID not in", values, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidBetween(Long value1, Long value2) {
            addCriterion("PURCHASEBOOKID between", value1, value2, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidNotBetween(Long value1, Long value2) {
            addCriterion("PURCHASEBOOKID not between", value1, value2, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("CONTENT is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("CONTENT is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("CONTENT =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("CONTENT <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("CONTENT >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("CONTENT >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("CONTENT <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("CONTENT <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("CONTENT like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("CONTENT not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("CONTENT in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("CONTENT not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("CONTENT between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("CONTENT not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNull() {
            addCriterion("CRTTIME is null");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNotNull() {
            addCriterion("CRTTIME is not null");
            return (Criteria) this;
        }

        public Criteria andCrttimeEqualTo(Date value) {
            addCriterion("CRTTIME =", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotEqualTo(Date value) {
            addCriterion("CRTTIME <>", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThan(Date value) {
            addCriterion("CRTTIME >", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CRTTIME >=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThan(Date value) {
            addCriterion("CRTTIME <", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThanOrEqualTo(Date value) {
            addCriterion("CRTTIME <=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeIn(List<Date> values) {
            addCriterion("CRTTIME in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotIn(List<Date> values) {
            addCriterion("CRTTIME not in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeBetween(Date value1, Date value2) {
            addCriterion("CRTTIME between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotBetween(Date value1, Date value2) {
            addCriterion("CRTTIME not between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andUpttimeIsNull() {
            addCriterion("UPTTIME is null");
            return (Criteria) this;
        }

        public Criteria andUpttimeIsNotNull() {
            addCriterion("UPTTIME is not null");
            return (Criteria) this;
        }

        public Criteria andUpttimeEqualTo(Date value) {
            addCriterion("UPTTIME =", value, "upttime");
            return (Criteria) this;
        }

        public Criteria andUpttimeNotEqualTo(Date value) {
            addCriterion("UPTTIME <>", value, "upttime");
            return (Criteria) this;
        }

        public Criteria andUpttimeGreaterThan(Date value) {
            addCriterion("UPTTIME >", value, "upttime");
            return (Criteria) this;
        }

        public Criteria andUpttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UPTTIME >=", value, "upttime");
            return (Criteria) this;
        }

        public Criteria andUpttimeLessThan(Date value) {
            addCriterion("UPTTIME <", value, "upttime");
            return (Criteria) this;
        }

        public Criteria andUpttimeLessThanOrEqualTo(Date value) {
            addCriterion("UPTTIME <=", value, "upttime");
            return (Criteria) this;
        }

        public Criteria andUpttimeIn(List<Date> values) {
            addCriterion("UPTTIME in", values, "upttime");
            return (Criteria) this;
        }

        public Criteria andUpttimeNotIn(List<Date> values) {
            addCriterion("UPTTIME not in", values, "upttime");
            return (Criteria) this;
        }

        public Criteria andUpttimeBetween(Date value1, Date value2) {
            addCriterion("UPTTIME between", value1, value2, "upttime");
            return (Criteria) this;
        }

        public Criteria andUpttimeNotBetween(Date value1, Date value2) {
            addCriterion("UPTTIME not between", value1, value2, "upttime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}